#ifndef _CNUM_RESULT_H_
#define _CNUM_RESULT_H_

/**
 * The result set from a numerical calculation process.
 */
struct Result {
    /** value of x where f(x)=0 */
    double x;
    /** error of x */
    double error;
    /** number of iterations taken to find x */
    int iterationCount;
    /** check result. if true, f(x)=0 fell inside the error threshold. */
    bool check;

    double fx;
};

#endif
